<!--
 * @Author: liuhanzhuang
 * @Date: 2023-01-04 15:12:27
 * @Description: 文件描述
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      background: #eee;
    }

    div {
      display: flex;
      align-items: center;
      background-color: pink;
      height: 200px;
      width: 200px;
      background: linear-gradient(#fff 50%, #000 50%);
      border-radius: 50%;
      animation: rot 5s linear infinite;
    }

    div::before {
      content: "";
      display: block;
      width: 50%;
      height: 50%;
      background: radial-gradient(#000 20%, #fff 20%);
      border-radius: 50%;
    }

    div::after {
      content: "";
      display: block;
      width: 50%;
      height: 50%;
      background: radial-gradient(#fff 20%, #000 20%);
      border-radius: 50%;
    }

    @keyframes rot {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(-360deg);
      }
    }
  </style>
</head>

<body>
  <div></div>
</body>

</html>